//账户充值
/*$(function(){
	var loginReturnBean;
	$.ajax({
		url : '/web-adv/basicInfo',
		data : loginReturnBean,
		type : 'post',
		dataType : 'json',
		success : function(data){
			$("#companyName").val(data.companyName);
			$("#openBank").val(data.openBank);
			$("#accountNumber").val(data.accountNumber);
		},
		error : function(){
			console.log("err");
		}
	});
	*/
	
	$("#submitApply").click(function(){
		var money = $("#rechargeNum").val();
		var param = {money : money};
		$.ajax({
			url : '/web-adv/updateBalance',
			
			data : param,
			type : 'post',
			dataType:"json",
			success : function(data){
				console.log(data);
				if(data.status == -1){
					alert(data.error);
				}else{
					window.location.href = "/web-adv/advWeb/views/userCenter/accountBalance/saveSuccess.html";
				}
			},
			error : function(xhr){
				 console.log("readyState" + xhr.readyState + "status" + xhr.status);
			}
		});
	})

//账户充值
$(function(){
	var model;
	$.ajax({
		url : '/web-adv/recharge',
		data : model,
		type : 'post',
		success : function(data){
			$("#companyName").val(data.companyName);
			$("#openBank").val(data.openBank);
			$("#accountNumber").val(data.accountNumber);
			
		},
		error : function(){
			console.log("err");
		}
	})
})

